﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System.Data;
using System.Data.SqlClient;

namespace 李晓霞web
{
    public partial class AllScore : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSelectAll_Click(object sender, EventArgs e)
        {
            //String strCn = "Server=pc.hstc.cn;database=dhd2014112106;uid=2014112106;pwd=19950616";
            //SqlConnection cn = new SqlConnection(strCn); //建对象
            //try
            //{
            //    cn.Open();
            //    //string strNo = this.txtNo.Text;
                
            //    string strSql = "select * from Student";
            //    SqlCommand cmd = new SqlCommand(strSql, cn);
            //    SqlDataReader dr = cmd.ExecuteReader();
            //    this.GridView1.DataSource = dr;
               
            //    this.GridView1.DataBind();
            //    //dr.Close();
            //}
            //catch (Exception ex)
            //{
            //    this.lblInfo.Text = ex.Message;
            //}
            //finally
            //{
            //    cn.Close();
            //}
        }

        //protected void Button1_Click(object sender, EventArgs e)
        //{
        //    try
        //    {
        //        this.GridView1.Visible = true;
        //    }
        //    catch (Exception ex)
        //    {
        //        this.lblInfo .Text =ex.Message ;
        //    }
                    
                  
        //    finally
        //    {

        //    }
            
        //}

        protected void Button1_Click1(object sender, EventArgs e)
        {
            try
            {
                this.GridView1.Visible = true;
            }
            catch (Exception ex)
            {
                this.lblInfo.Text = ex.Message;
            }


            finally
            {

            }
        }
        }
    }
